<?php
    error_reporting(E_ALL^E_NOTICE);
	header("content-type:text/html;charset=utf-8");
	$client = new SoapClient("http://192.168.0.190:7099/service/landcarriagews_debug.php?wsdl",array('encoding'=>'UTF-8'));
switch ($_GET['type'])
{
	case 'pushmsg':
		try {
			$p=$_POST['pushmsg'];
		 	$p=str_replace('\"','"',$p);
			$p=str_replace("\r",'',$p);
			$p=str_replace("\n",'\n',$p);
		    $param = array('params' =>$p);
		    $arr = $client->pushMessage($p);
			print $arr;
			} catch (SOAPFault $e) {
			    print $e;
			}
		break;
	case "newjsbill":
			try {
			    $p=$_POST['newjsbill'];
			 	$p=str_replace('\"','"',$p);
				$p=str_replace("\r",'',$p);
				$p=str_replace("\n",'\n',$p);
			    $param = array('params' =>$p);
                $arr = $client->newjsbill($p);
				 print  ($arr); 
				} catch (SOAPFault $e) {
				    print $e;
				}
		break;
	case "checkbox":
		try {
		    $p=$_POST['checkbox'];
		 	$p=str_replace('\"','"',$p);
			$p=str_replace("\r",'',$p);
			$p=str_replace("\n",'\n',$p);
		  $param = array('params' =>$p);
 		 $arr = $client->checkbox($p);
		 print ($arr); 
		 } catch (SOAPFault $e) {
		    print $e;
		}
	break;
}
?>